package com.viknix.threadpool.manager.client.filter;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: Dongqi
 * @Date: 2021/11/24 20:57
 * @Version 1.0
 * @Description:
 */
public class ConfigRequest implements IConfigRequest {

    private Map<String, Object> param = new HashMap<String, Object>();

    private IConfigContext configContext = new ConfigContext();

    public String getNamespace() {
        return (String) param.get("namespace");
    }

    public void setNamespace(String namespace) {
        param.put("namespace", namespace);
    }

    public String getPoolId() {
        return (String) param.get("poolId");
    }

    public void setPoolId(String poolId) {
        param.put("poolId", poolId);
    }

    public String getItem() {
        return (String) param.get("item");
    }

    public void setItem(String item) {
        param.put("item", item);
    }

    public String getContent() {
        return (String) param.get("content");
    }

    public void setContent(String content) {
        param.put("content", content);
    }

    @Override
    public Object getParameter(String key) {
        return param.get(key);
    }

    @Override
    public IConfigContext getConfigContext() {
        return configContext;
    }
}
